package com.hualan.web.wsj;

import com.hualan.pojo.HeartKnowledge;
import com.hualan.service.service.service.wsj.HeartKnowledgeService;
import com.hualan.util.ResultEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/HeartKnowledge")
public class HeartKnowledgeController {
    @Autowired
    private HeartKnowledgeService heartKnowledgeService;
    @RequestMapping("/listAll")
    public ResultEntity listAll(){
        List<HeartKnowledge> HeartKnowledgeList = heartKnowledgeService.listAll();
        return ResultEntity.ok(HeartKnowledgeList);
    }
}
